package com.ccibe.g16system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;

@TableName(value = "t_customer")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Customer implements Serializable {
    /**
     * 消费者ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 消费者账号
     */
    private String account;

    /**
     * 消费者密码（MD5）
     */
    private String password;

    /**
     * 真实名字
     */
    private String realname;

    /**
     * 身份证号
     */
    private String idcard;

    /**
     * 手机号
     */
    private String tel;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 省份
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String district;

    /**
     * 详细地址
     */
    private String addr;

    /**
     * 状态（0:正常;1:禁用）
     */
    private Integer state;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", idcard='" + idcard + '\'' +
                ", tel='" + tel + '\'' +
                ", age=" + age +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", addr='" + addr + '\'' +
                ", state=" + state +
                '}';
    }
}